﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="search.ascx.cs" Inherits="John.search" %>
<style>
.ooib { border-style: none solid solid;}
.ooih td { border-width: 1px; padding: 0 5; }
.ooihj {  background-image: url(images/bre4.gif) ; border-style: solid solid none;cursor: hand}
.ooihs {  background-image: url(images/re.gif) ; border-style: solid; cursor: hand}
.ooihx { border-style: none;}

</style>

<script language="JavaScript" type="text/javascript">
function ghbq(td)
{
  var tr = td.parentElement.cells;
  var ob = obody.rows;
  for(var ii=0; ii<tr.length-1; ii++)
  {
    tr[ii].className = (td.cellIndex==ii)?"ooihj":"ooihs";
    ob[ii].style.display = (td.cellIndex==ii)?"block":"none";
  }
}
</script>

<table class="ooih"  height="34">
    <tr>
        <td class="ooihj" nowrap onclick="ghbq(this)" height="34" width="80" align="center">
            <strong>
            产品供应</strong></td>
        <td class="ooihs" nowrap onclick="ghbq(this)" height="34" width="80" align="center">
            <strong>
            产品求购</strong></td>
        <td class="ooihs" nowrap onclick="ghbq(this)" height="34" width="80" align="center">
            <strong>
            创业加盟</strong></td>
        <td class="ooihs" nowrap onclick="ghbq(this)" height="34" width="80" align="center">
            <strong>
            单位展示</strong></td>
        <td class="ooihx" width="100%">
            </td>
    </tr>
</table>
<table>
<tr>
<td valign="top" border="0" cellspacing="0" cellpadding="0">
            <asp:DropDownList ID="ddlClass" runat="server">
            </asp:DropDownList></td>
<td style="width: 327px">
<table class="ooib" id="obody">
    <tr>
        <td style="width: 307px">
            &nbsp;<asp:TextBox ID="txtSelect" runat="server" Width="200px"></asp:TextBox>
            <asp:Button ID="btnSelect" runat="server" Text="供应搜索" OnClick="btnSelect_Click"></asp:Button></td>
    </tr>
    <tr style="display: none">
        <td style="width: 307px">
            &nbsp;<asp:TextBox ID="TextBox2" runat="server" Width="200px"></asp:TextBox>
            <asp:Button ID="Button2" runat="server" Text="求购搜索" OnClick="Button2_Click" /></td>
    </tr>
    <tr style="display: none">
        <td style="width: 307px">
            &nbsp;<asp:TextBox ID="TextBox3" runat="server" Width="200px"></asp:TextBox>
            <asp:Button ID="Button3" runat="server" Text="商机搜索" OnClick="Button3_Click" /></td>
    </tr>
    <tr style="display: none">
        <td style="width: 307px">
            &nbsp;<asp:TextBox ID="TextBox4" runat="server" Width="200px"></asp:TextBox>
            <asp:Button ID="Button4" runat="server" Text="单位搜索" OnClick="Button4_Click" /></td>
    </tr>
</table>
</td>
</tr>
</table>